window.onload=function (){
    let lefImg=document.getElementById('leftImg');
    let rightImg=document.getElementById('rightImg');
    let win=document.getElementById('win');
    let closeBt=document.getElementById('close');

    function open(){
        win.style.display='block';
        win.style.opacity='0';
        setTimeout(()=>{
            win.style.opacity='1'
        },200)
    }

    function close(){
        win.style.opacity='0';
        setTimeout(()=>{
            win.style.display='none';
        },200);
    }

    lefImg.onclick=open;
    rightImg.onclick=open;
    closeBt.onclick=close;

}